/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package bean;

import java.util.Date;

/**
 *
 * @author xuanl_000
 */
public class News {
    private int id;
    private int accID;
    private String title;
    private String description;
    private int status;
    private Date createTime;
    private Date updateTime;

    public News(int id, int accID, String title, String description, int status, Date createTime, Date updateTime) {
        this.id = id;
        this.accID = accID;
        this.title = title;
        this.description = description;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
    

    public News() {
    }

    public News(int id, int accID, String title, String description, int status, Date createTime) {
        this.id = id;
        this.accID = accID;
        this.title = title;
        this.description = description;
        this.status = status;
        this.createTime = createTime;
       
    }

    @Override
    public String toString() {
        return "News{" + "id=" + id + ", accID=" + accID + ", title=" + title + ", description=" + description + ", status=" + status + ", createTime=" + createTime + ", updateTime=" + updateTime + '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAccID() {
        return accID;
    }

    public void setAccID(int accID) {
        this.accID = accID;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
}
